package com.api.demo.dto.business.worker;

import com.api.demo.dto.business.ApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @description: api 创客DTO
 * @author: yanming
 * @createDate: 2022/12/28 10:45
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ApiAddWorkerDTO extends ApiDTO implements Serializable {

    @ApiModelProperty(value = "统一信用代码",required = true)
    @NotBlank(message = "统一信用代码不能为空")
    private String creditCode;

    @ApiModelProperty(value = "服务商id")
    private Long taxId;

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "银行卡号")
    private String bankCode;

    @ApiModelProperty(value = "性别", required = true)
    @NotBlank(message = "性别不能为空")
    private String sex;

    @ApiModelProperty(value = "身份证号码", required = true)
    @NotBlank(message = "身份证号码不能为空")
    private String idCardCode;

    @ApiModelProperty(value = "身份证正面")
//    @NotBlank(message = "身份证正面不能为空")
    @URL(message = "请填写正确的身份证正面链接")
    private String idCardFront;

    @ApiModelProperty(value = "身份证反面")
//    @NotBlank(message = "身份证反面不能为空")
    @URL(message = "请填写正确的身份证反面链接")
    private String idCardBack;

    @ApiModelProperty(value = "合同",required = true)
//    @NotBlank(message = "合同不能为空")
    @URL(message = "请填写正确的合同链接")
    private String contract;

    @ApiModelProperty(value = "合同编号")
    private String contractNum;

    @ApiModelProperty(value = "认证图片")
    @URL(message = "请填写正确的认证图片链接")
    private String attestationPicture;

    @ApiModelProperty(value = "常驻地址")
    private String address;

    @ApiModelProperty(value = "认证视频")
    @URL(message = "请填写正确的认证视频链接")
    private String attestationVideo;

    @ApiModelProperty(value = "主要技能")
    private String skill;
}